const path = require('path');
const express = require('express');

let app = express();


//构建
const ClassRouter = express.Router();

//引入控制器
const ClassController = require(path.join(__dirname,"../controllers/ClassController"));

//班级列表页面
ClassRouter.get('/classList',ClassController.classList);

//班级添加页面
ClassRouter.get('/classAdd',ClassController.classAdd);

//班级添加post处理
ClassRouter.post('/classAdd',ClassController.classAddForm);

//班级编辑页面
ClassRouter.get('/classEdit',ClassController.classEdit);

//班级编辑post处理
ClassRouter.post('/classEdit',ClassController.classEditForm);

//班级删除
ClassRouter.get('/classDelete',ClassController.classDelete);



module.exports = ClassRouter;